﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 品相测定仓储
    /// </summary>
    public interface IAppearanceModelRepository
    {

        /// <summary>
        /// 获取品相测定数据
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Appearancemodel>> Appearance();

        /// <summary>
        /// 获取品相测定数据列表
        /// </summary>
        /// <param name="earTag"></param>
        /// <param name="variety"></param>
        /// <param name="sheepRescissionSex"></param>
        /// <returns></returns>
        Task<List<Appearancemodel>> AppearanceModelList(string earTag, int variety, bool sheepRescissionSex);

        /// <summary>
        /// 删除品相测定数据
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> Delete(params int[] ids);

        /// <summary>
        /// 添加品相测定数据
        /// </summary>
        /// <param name="appearancemodel"></param>
        /// <returns></returns>
        Task<int> Add(Appearancemodel appearancemodel);

        /// <summary>
        /// 更新品相测定数据
        /// </summary>
        /// <param name="appearancemodel"></param>
        /// <returns></returns>
        Task<int> Update(Appearancemodel appearancemodel);





    }




}
